package com.budwk.app.sqfwDoc.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.util.Date;

/**
 * @author ZY.Wang
 * @since 2023/12/11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Table("shequ.sqfw_template_field_relation")
@Comment("字段关系映射表")
@ApiModel(description = "字段关系应映射表")
public class SqfwTemplateFieldRelation {

    @Name
    @Column("id")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    @PrevInsert(uu32 = true)
    private String id;

    @Column("template_field_id")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String templateFieldId;

    @Column("template_dict_id")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String templateDictId;

    @Column("template_vis_dict_id")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String templateVisDictId;

    @Column("create_time")
    @ColDefine(type = ColType.DATETIME)
    private Date createTime;

    @Column("create_by")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String createBy;

    @Column("update_time")
    @ColDefine(type = ColType.DATETIME)
    private Date updateTime;

    @Column("update_by")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String updateBy;
}
